# Copyright (c) 2012 The cwkshell Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
	
	'targets':[
		 {
		      'target_name': 'cwkshell_resources',
		      'type': 'none',
		      'dependencies': [
		        'cwkshell_files_resources',
		         'cwkshell_strings_resources',
		      ],
		      'variables': {
		        'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/cuc',
		      },
		      'includes': [ '../build/grit_target.gypi' ],
		      'copies': [
		        {
		          'destination': '<(PRODUCT_DIR)',
		          'files': [
		          
		         
		          ],
		        },
		      ],
		    },
		    {
			'target_name': 'cwkshell_files_resources',
			'type': 'none',
			'variables': {
			'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/cuc',
			},
			'actions': [
			{
			  'action_name': 'cwkshell_files_resources',
			  'variables': {
			    'grit_grd_file': 'src/resources/cwkshell_files_resources.grd',
			  },
			  'includes': [ '../build/grit_action.gypi' ],
			},
			],
			},
			 {
			'target_name': 'cwkshell_strings_resources',
			'type': 'none',
			'variables': {
			'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/cuc',
			},
			'actions': [
			{
			  'action_name': 'cwkshell_strings_resources',
			  'variables': {
			    'grit_grd_file': 'src/resources/cwkshell_strings_resources.grd',
			  },
			  'includes': [ '../build/grit_action.gypi' ],
			},
			],
			},
		    {
		     
		      'target_name': 'cwkshell_pak',
		      'type': 'none',
		      'dependencies': [
		        '<(DEPTH)/content/browser/devtools/devtools_resources.gyp:devtools_resources',
		     'cwkshell_resources',
		        '<(DEPTH)/net/net.gyp:net_resources',
		        '<(DEPTH)/ui/ui.gyp:ui_resources',
		      ],
		      'variables': {
		        'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
		      },
		      'actions': [
		        {
		          'action_name': 'repack_cwkshell_pak',
		          'variables': {
		            'pak_inputs': [
		              '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/cuc/cwkshell_files_resources.pak',
		              
		                  '<(SHARED_INTERMEDIATE_DIR)/cuc/cwkshell_strings_resources_zh-CN.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_zh-CN.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_zh-CN.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
		              '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-CN.pak',
		            ],
		          },
		          'inputs': [
		            '<(repack_path)',
		            '<@(pak_inputs)',
		          ],
		          'action': ['python', '<(repack_path)', '<@(_outputs)',
		                     '<@(pak_inputs)'],
		         
	              'outputs': [
	                '<(PRODUCT_DIR)/cwkshell.pak',
	         		 ],
		        },
		      ],
		    },

	],
}